package com.train.mvc.service.impl;

import com.train.mvc.dao.IUserDao;
import com.train.mvc.dao.UserPo;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * @author hugx
 * @PackageName: com.train.mvc.service.impl
 * @ClassName: UserServiceImpl
 * @Description:
 * @date 2021/1/24 22:12
 */

public class UserServiceImpl implements IUserService {

    @Autowired
    private IUserDao userDao;

    @Override
    public int saveUser(UserPo userPo) {
        System.out.println("准备调用 userDao.insert()");
        userDao.insert(userPo);
        System.out.println("保存成功");
        return 1;
    }
}
